extends Control

@onready var durationTimer:Timer = $DurationTimer
@onready var label = $Label


func showMessage(msg):
	label.text = msg
	
	label.modulate.a = 1
	durationTimer.stop()
	durationTimer.start()
	durationTimer.timeout.connect(onTimeout)
	
func onTimeout():
	label.text = ""
	label.modulate.a = 0
	
	
	
	
	
	
